package com.sciencep.pro.core.domain.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
public class BaseEntity implements Serializable {

    private static final long serialVersionUID = -3743441206821399679L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField(value = "isDel")
    private Integer isDel;

    @TableField(value = "createDate",fill = FieldFill.INSERT)
    private Date createDate;

    @TableField(value = "createUserId")
    private String createUserId;

    @TableField(value = "createUserName")
        private String createUserName;

    @TableField(value = "modifyDate",fill = FieldFill.UPDATE)
    private Date modifyDate;

    @TableField(value = "modifyUserId")
    private String modifyUserId;

    @TableField(value = "modifyUserName")
    private String modifyUserName;
}
